package router

import(
	"net/http"
	"fmt"
	"github.com/gin-gonic/gin"
	"my_server_test/controller"
)

func Router(engine *gin.Engine) {
	v1 := engine.Group("/api/test1")
	v1.Any("/test", func(c *gin.Context) {
		fmt.Println(http.StatusOK)
		fmt.Println("大吉大利，今晚吃鸡～")
		//return
	})
	shiyan := v1.Group("/shiyan")
	{
		shiyan.GET("/md5jiami",controller.ShiyanFunc)
	}

	app_api := engine.Group("/api")

	login := app_api.Group("/login")
	//管理员相关
	{
		login.POST("/loginland",controller.LoginLand)
	}

}